/** 自定义的看板数据 */
const defaultCustomizeTable = [
	{
		title: '序号',
		dataIndex: 'index',
		key: 'index'
	},
	{
		title: '微信OpenID',
		dataIndex: 'openId',
		key: 'openId'
	},
	{
		title: '序列号',
		dataIndex: 'sn',
		key: 'sn'
	},
	{
		title: '机型',
		dataIndex: 'device',
		key: 'device'
	},
	{
		title: '客户名',
		dataIndex: 'userName',
		key: 'userName'
	},
	{
		title: '所属公司',
		dataIndex: 'company',
		key: 'company'
	},
	{
		title: '手机号',
		dataIndex: 'mobile',
		key: 'mobile'
	},
	{
		title: '发起呼叫时间',
		dataIndex: 'callTime',
		key: 'callTime'
	},
	{
		title: '等待时间',
		dataIndex: 'waitTime',
		key: 'waitTime'
	},
	{
		title: '通话开始时间',
		dataIndex: 'startTime',
		key: 'startTime'
	},
	{
		title: '通话结束时间',
		dataIndex: 'endTime',
		key: 'endTime'
	},
	{
		title: '通话总时长',
		dataIndex: 'totalTime',
		key: 'totalTime'
	},
	{
		title: '工单号',
		dataIndex: 'businessNo',
		key: 'businessNo'
	},
	{
		title: '工单状态',
		dataIndex: 'status',
		key: 'status'
	},
	{
		title: '客服工号',
		dataIndex: 'serviceNo',
		key: 'serviceNo'
	},
	{
		title: '是否接通',
		dataIndex: 'isAccept',
		key: 'isAccept'
	},
	{
		title: '评价',
		dataIndex: 'rate',
		key: 'rate'
	},
	{
		title: '评价留言',
		dataIndex: 'comments',
		key: 'comments'
	}
];

const mockTableData = [
	{
		index: 1,
		openId: new Date().getTime(),
		sn: new Date().getTime(),
		device: '',
		userName: '',
		company: '',
		mobile: '',
		callTime: '',
		waitTime: '',
		startTime: '',
		endTime: '',
		totalTime: '',
		businessNo: '',
		status: '',
		serviceNo: '',
		isAccept: 'yes',
		rate: 1,
		comments: ''
	},
	{
		index: 2,
		openId: new Date().getTime(),
		sn: new Date().getTime(),
		device: '',
		userName: '',
		company: '',
		mobile: '',
		callTime: '',
		waitTime: '',
		startTime: '',
		endTime: '',
		totalTime: '',
		businessNo: '',
		status: '',
		serviceNo: '',
		isAccept: 'no',
		rate: 2,
		comments: ''
	}
];

const sheachHeader = [
	{
		id: 1,
		label: '序列号',
		type: 'input',
		key: 'sn',
		placeholder: '请输入序列号',
		width: '260px'
	},
	{
		id: 2,
		label: '手机号',
		type: 'input',
		key: 'mobile',
		placeholder: '请输入手机号',
		width: '260px'
	},
	{
		id: 3,
		label: '通话开始时间',
		type: 'date',
		key: 'date',
		placeholder: ['开始时间', '结束时间'],
		width: '344px'
	},
	{
		id: 4,
		label: '工单号',
		type: 'input',
		key: 'businessNo',
		placeholder: '请输入工单号',
		width: '260px'
	},
	{
		id: 5,
		label: '客户工号',
		type: 'input',
		key: 'customerNo',
		placeholder: '请输入客户名',
		width: '260px'
	},
	{
		id: 6,
		label: '是否接通',
		type: 'select',
		key: 'isAccept',
		placeholder: '',
		width: '260px',
		options: [
			{
				key: 'all',
				value: '全部'
			},
			{
				key: 'yes',
				value: '是'
			},
			{
				key: 'no',
				value: '否'
			}
		]
	},
	{
		id: 7,
		label: '评价分值',
		type: 'select',
		key: 'rate',
		placeholder: '',
		width: '260px',
		options: [
			{
				key: 'all',
				value: '全部'
			},
			{
				key: '5',
				value: '5'
			},
			{
				key: '4',
				value: '4'
			},
			{
				key: '3',
				value: '3'
			},
			{
				key: '2',
				value: '2'
			},
			{
				key: '1',
				value: '1'
			},
			{
				key: '0',
				value: '0'
			}
		]
	},
	{
		id: 8,
		label: '重置',
		type: 'button',
		key: 'reset',
		placeholder: '',
		width: '260px'
	},
	{
		id: 9,
		label: '筛选',
		type: 'button',
		key: 'submit',
		placeholder: '',
		width: '260px'
	}
];

export { defaultCustomizeTable, sheachHeader, mockTableData };
